﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    public class LinkNode<T>
    {
        private T data;
        private LinkNode<T> next;
        public LinkNode()
        {
            data = default(T);
        }
        public LinkNode(T value)
        {
            data = value;
            next = null;
        }
        public T Data
        {
            get { return data; }
            set { data = value; }
        }
        public LinkNode<T> Next
        {
            get { return next; }
            set { next = value; }
        }
    }
}
